Description: This is a kwin effect that draws the application menu in the titlebar when the mouse is hovered over the titlebar.
Dependencies:
For gtk apps: libdbusmenu appmenu-gtk
For qt/kde apps libdbusmenu-qt appmenu-qt
For Qt/KDE apps to work with this you need a patched version of Qt. If you're on Ubuntu then you already have it. For archlinux users, it's in the AUR as qt-appmenu.
extract the archive cd titlemenu mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../ make sudo make install
After this go to systemsettings, activate the titlemenu effect in the desktop effects category. Logout and login in again.Last changelog:
0.1 - Added a config gui, added support fro showing a single menu item with the rest of the menu as a submenu and added support to show the menu always 0.01 - Initial release
hi, i've problem in kubuntu 11.04
nino@nino-laptop:~/Scaricati/titlemenu-0.1/build$ sudo apt-get install kdebase-workspace-dev
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
kdebase-workspace-dev è già alla versione più recente.
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
nino@nino-laptop:~/Scaricati/titlemenu-0.1/build$ cmake -DCMAKE_INSTALL_PREFIX='kde4-config --prefix' ../
WARNING: KWin headers NOT found, compiling might fail.
-> Ensure you've installed the kdebase[-workspace]-dev package
-- Found Qt-Version 4.7.2 (using /usr/bin/qmake)
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found KDE 4.7 include dir: /usr/include
-- Found KDE 4.7 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nino/Scaricati/titlemenu-0.1/build
nino@nino-laptop:~/Scaricati/titlemenu-0.1/build$ sudo make
[ 0%] Built target kcm_kwin4_effect_titlemenu_automoc
[ 6%] Building CXX object CMakeFiles/kcm_kwin4_effect_titlemenu.dir/titlemenu_config.o
/home/nino/Scaricati/titlemenu-0.1/titlemenu_config.cpp:23:25: fatal error: kwineffects.h: File o directory non esistente
compilation terminated.
make[2]: *** [CMakeFiles/kcm_kwin4_effect_titlemenu.dir/titlemenu_config.o] Errore 1
make[1]: *** [CMakeFiles/kcm_kwin4_effect_titlemenu.dir/all] Errore 2
make: *** [all] Errore 2
solved
How can I set Opera to this style (menu, it will optimal with tabs in title like chrome in windows)? http://i.iinfo.cz/images/652/opera-11-beta.png
I'd really like an integration into the window decoration. Atm, the menu button is just an overlay, buttons of the window decoration under the menubutton aren't useable.
How can i manipulate the design of the button?
This is an excellent effect, great work and thank you!!
For the next versions could you consider this idea?
http://forum.kde.org/brainstorm.php#idea91172_page1
When the qt-appmenu patch goes upstream in Qt, hopefully 4.8, it could be merged upstream!
If you're on ubuntu then you already have the patched qt installed. For arch linux it's in aur. Just install the appmenu-qt package from aur and that will pull in all the required dependencies.
WARNING: KWin headers NOT found, compiling might fail.
-> Ensure you've installed the kdebase[-workspace]-dev package
..got a download link for that? (can't find anything like that in the Arch Linux repos)
It is a nice idea to save some space, but I experience some problems when I try to trigger the effect, see this screenshot: http://www.wstaw.org/m/2011/02/17/plasma-desktopnz1979.jpg
Ratings & Comments
29 Comments
hi, i've problem in kubuntu 11.04 nino@nino-laptop:~/Scaricati/titlemenu-0.1/build$ sudo apt-get install kdebase-workspace-dev Lettura elenco dei pacchetti... Fatto Generazione albero delle dipendenze Lettura informazioni sullo stato... Fatto kdebase-workspace-dev è già alla versione più recente. 0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati. nino@nino-laptop:~/Scaricati/titlemenu-0.1/build$ cmake -DCMAKE_INSTALL_PREFIX='kde4-config --prefix' ../ WARNING: KWin headers NOT found, compiling might fail. -> Ensure you've installed the kdebase[-workspace]-dev package -- Found Qt-Version 4.7.2 (using /usr/bin/qmake) -- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so -- Found KDE 4.7 include dir: /usr/include -- Found KDE 4.7 library dir: /usr/lib -- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler -- Found automoc4: /usr/bin/automoc4 -- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so -- Configuring done -- Generating done -- Build files have been written to: /home/nino/Scaricati/titlemenu-0.1/build nino@nino-laptop:~/Scaricati/titlemenu-0.1/build$ sudo make [ 0%] Built target kcm_kwin4_effect_titlemenu_automoc [ 6%] Building CXX object CMakeFiles/kcm_kwin4_effect_titlemenu.dir/titlemenu_config.o /home/nino/Scaricati/titlemenu-0.1/titlemenu_config.cpp:23:25: fatal error: kwineffects.h: File o directory non esistente compilation terminated. make[2]: *** [CMakeFiles/kcm_kwin4_effect_titlemenu.dir/titlemenu_config.o] Errore 1 make[1]: *** [CMakeFiles/kcm_kwin4_effect_titlemenu.dir/all] Errore 2 make: *** [all] Errore 2
/titlemenu.cpp:30:36: fatal error: X11/extensions/Xrender.h: Adresář nebo soubor neexistuje compilation terminated. make[2]: *** [CMakeFiles/kwin4_effect_titlemenu.dir/titlemenu.o] Error 1 make[1]: *** [CMakeFiles/kwin4_effect_titlemenu.dir/all] Error 2 make: *** [all] Error 2 Xrender.h really missing. How can I solve it?
solved How can I set Opera to this style (menu, it will optimal with tabs in title like chrome in windows)? http://i.iinfo.cz/images/652/opera-11-beta.png
I'd really like an integration into the window decoration. Atm, the menu button is just an overlay, buttons of the window decoration under the menubutton aren't useable. How can i manipulate the design of the button?
can you creat a deb file please?
I use arch linux so I can't create a deb package unfortunately.
okay, but thanks :)
https://bugs.kde.org/show_bug.cgi?id=266596
does this work only for Oxygen?
This will work with all window decorations as long as you have desktop effects enabled
Linking CXX shared module lib/kwin4_effect_titlemenu.so CMakeFiles/kwin4_effect_titlemenu.dir/titlemenu.o: In function `KWin::TitleMenuEffect::DumpMenu(unsigned long)': /media/test/titlemenu-0.01/titlemenu.cpp:253: undefined reference to `QJson::Serializer::Serializer()' /media/test/titlemenu-0.01/titlemenu.cpp:254: undefined reference to `QJson::Serializer::serialize(QVariant const&)' /media/test/titlemenu-0.01/titlemenu.cpp:253: undefined reference to `QJson::Serializer::~Serializer()' collect2: ld returned 1 exit status make[2]: *** [lib/kwin4_effect_titlemenu.so] Error 1 make[1]: *** [CMakeFiles/kwin4_effect_titlemenu.dir/all] Error 2 make: *** [all] Error 2
This has been fixed in the new version
Same error, full log http://pastebin.com/BBn6rc96
Please make sure you have qjson installed.
Yes, qjscon installed.
This is an excellent effect, great work and thank you!! For the next versions could you consider this idea? http://forum.kde.org/brainstorm.php#idea91172_page1 When the qt-appmenu patch goes upstream in Qt, hopefully 4.8, it could be merged upstream!
>patched qt(for qt/kde apps). Where can i find this ?
If you're on ubuntu then you already have the patched qt installed. For arch linux it's in aur. Just install the appmenu-qt package from aur and that will pull in all the required dependencies.
WARNING: KWin headers NOT found, compiling might fail. -> Ensure you've installed the kdebase[-workspace]-dev package ..got a download link for that? (can't find anything like that in the Arch Linux repos)
oh, it seems to have compiled anyway :) where in systemsettings do you activate it?
Look in Desktop Effects for Titlemenu.
It is a nice idea to save some space, but I experience some problems when I try to trigger the effect, see this screenshot: http://www.wstaw.org/m/2011/02/17/plasma-desktopnz1979.jpg
Same for me... appmenu-qt working...
Which version of KDE are you using? Does this still happen after logging out and logging back in?
Yes log in log out after activation of the effect makes no difference here. This is KDE SC 4.6.0.